#include <OImage.h>

OImage::OImage(OWidget *parent):OWidget(parent)
{
}

OImage::~OImage()
{
}

void OImage::SetImage(string path)
{
	dfb->CreateImageProvider( dfb, path.c_str(),&image );
	image->RenderTo( image, surface, NULL );
	image->Release( image );
	Invalid();
}